'use strict';

const Service = require('egg').Service;

class BookService extends Service {
  async find() {
    const { ctx } = this;
    const list = ctx.model.Book.find().limit(Number(10));
    return list;
  }
}
module.exports = BookService;
